<template>
  <div>
    <el-row :gutter="10">
      <el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
        <div class="grid-content bg-purple">
          <p class="cha">
            <span>绘世界现有班级</span>
            <span class="ban">查看班级详情</span>
          </p>
          <div class="wen">
            <p>总班级数量: 57个</p>
            <p>平均好评度: 4.6/分</p>
            <p>学员总数量: 1788人</p>
          </div>
          <div class="bian">编辑班级</div>
        </div>
      </el-col>
      <el-col :xs="18" :sm="18" :md="18" :lg="18" :xl="18">
        <div class="grid-content bg-purple-light">
          <p class="chaa">快速搜索</p>
          <div class="yuan-gong">
            <div class="bain">
              <div>科目选择</div>
              <input
                type="text"
                name=""
                id=""
                placeholder="请输入"
                class="qing"
              />
            </div>
            <div class="bain">
              <div>班级编号</div>
              <input
                type="text"
                name=""
                id=""
                placeholder="请输入"
                class="qing"
              />
            </div>
            <div class="bain">
              <div>老师姓名</div>
              <input
                type="text"
                name=""
                id=""
                placeholder="请输入"
                class="qing"
              />
            </div>
            <div class="an">
              <button style="background: #446ce3">查询</button>
              <button style="background: #61b65c">新建</button>
            </div>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="10">
      <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
        <div class="grid-content bg-bottom">
          <p class="ban-ji">班级管理</p>
          <ul class="ul">
            <li v-for="item in list" :key="item.id" class="li">
              <div class="imgUrl">
                <img src="../../../assets/img/脐带.png" alt="" />
              </div>
              <div class="moddel">
                <p>{{ item.ming }}</p>
                <p>{{ item.bian }}</p>
                <p>{{ item.zhu }}</p>
              </div>
              <div class="bian-ji">编辑班级</div>
            </li>
          </ul>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
  setup() {
    const list = ref([
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
      {
        id: new Date().getTime(),
        ming: "班级名称:厚图插画特训班",
        bian: "班级编号: 20153564",
        zhu: "主教老师:赵苗苗老师",
      },
    ]);
    return {
      list,
    };
  },
});
</script>

<style lang="less" scoped>
.el-col {
  border-radius: 4px;
}

.bg-purple {
  background: #fff;
  width: 100%;
  height: 133px;
  box-shadow: 0px 0px 3px 5px rgba(153, 153, 153, 0.09);
  border-radius: 3px;
  position: relative;
  .cha {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #e9e9e9;
    font-size: 13px;
    font-family: PingFang SC;
    font-weight: 600;
    color: #333333;
    padding-left: 20px;
    padding-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .ban {
      font-size: 12px;
      color: #446ce3;
    }
  }
  .wen {
    position: absolute;
    top: 45px;
    left: 40px;
    p {
      margin-top: 5px;
      width: 100%;
    }
  }
  .bian {
    width: 35%;
    height: 21.5px;
    background: #446ce3;
    border-radius: 13px;
    position: absolute;
    top: 80%;
    right: 8%;
    text-align: center;
    line-height: 21.5px;
    color: #fff;
    font-size: 12px;
  }
}

.bg-purple-light {
  background: #fff;
  width: 100%;
  height: 133px;
  box-shadow: 0px 0px 3px 5px rgba(153, 153, 153, 0.09);
  border-radius: 3px;
  .chaa {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #e9e9e9;
    font-size: 13px;
    font-family: PingFang SC;
    font-weight: 600;
    color: #333333;
    padding-left: 20px;
  }
  .yuan-gong {
    width: 100%;
    height: 35px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 30px;
    .bain {
      width: 210px;
      height: 35px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .qing {
        width: 150px;
        height: 35px;
        background: #e9e9e9;
        border: none;
        border-radius: 5px;
        padding-left: 10px;
      }
    }
    .an {
      width: 160px;
      height: 35px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      button {
        width: 69px;
        height: 35px;
        color: #fff;
        text-align: center;
        line-height: 35px;
        font-size: 14px;
        border: none;
        border-radius: 5px;
      }
    }
  }
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

.bg-bottom {
  width: 100%;
  height: 485px;
  background: #fff;
  margin-top: 20px;
  box-shadow: 0px 0px 3px 5px rgba(153, 153, 153, 0.09);
  border-radius: 3px;
  .ban-ji {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #e9e9e9;
    font-size: 13px;
    font-family: PingFang SC;
    font-weight: 600;
    color: #333333;
    padding-left: 20px;
  }
  .ul {
    width: 100%;
    height: 460px;
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .li {
      width: 17%;
      height: 200px;
      position: relative;
      .imgUrl {
        width: 100%;
        height: 133px;

        img {
          width: 100%;
          height: 100%;
        }
      }
      .moddel {
        position: absolute;
        top: 70%;
        left: 5%;
        p {
          margin-top: 5px;
        }
      }
      .bian-ji {
        position: absolute;
        top: 88%;
        right: 5%;
        width: 30%;
        height: 20px;
        background: #446ce3;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        color: #fff;
        border-radius: 20px;
      }
    }
  }
}
</style>
